import { reactive, ref } from "vue";

export default function InitHook() {
  //表单数据
  const formState = reactive<Partial<ExchangeRateManagement.AddForm>>({
    currencyName: undefined, //币种名称
    currencyCode: undefined, //	币种字典表code
    exchangeRate: undefined //汇率
  });

  //表格数据
  const tableData = reactive([]);

  //等待状态
  const loading = ref<boolean>(false);

  //表单ref
  const formRef = ref(null);
  return {
    tableData,
    formState,
    loading,
    formRef
  };
}
